﻿<Window x:Class="OODCRM.Dialogs.UserLogin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:db="clr-namespace:DatabaseSelectorControlLibrary;assembly=DatabaseSelectorControlLibrary"
        Title="Đăng nhập" Height="300" Width="400"
        WindowStyle="SingleBorderWindow" ResizeMode="NoResize"
        >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        
        <db:DatabaseSelector Grid.ColumnSpan="2" Margin="3,3,3,40" 
                             MainLabel="Cơ sở dữ liệu" ServersLabel="Máy chủ:"
                             DatabasesLabel="Tên cơ sở dữ liệu:"
                             x:Name="dbSelector"/>
        
        <TextBlock Text="Tên người dùng: " Grid.Row="1" HorizontalAlignment="Right" Margin="8"/>
        <TextBox x:Name="tbxUsername" Grid.Row="1" Grid.Column="1" Margin="8"/>

        <TextBlock Text="Mật khẩu: " Grid.Row="2" HorizontalAlignment="Right" Margin="8"/>
        <PasswordBox x:Name="tbxPassword" Grid.Row="2" Grid.Column="1" Margin="8"/>
        
        <Button Content="OK" Margin="8,8,80,8" Width="60" Height="30"
                Grid.Row="3" Grid.Column="1"
                VerticalAlignment="Top" HorizontalAlignment="Right"
                IsDefault="True" Click="Button_Click"/>
        
        <Button Content="Huỷ" Margin="8,8,8,8" Width="60"
                Grid.Row="3" Grid.Column="1" Height="30"
                VerticalAlignment="Top" HorizontalAlignment="Right"
                IsCancel="True"/>

    </Grid>
</Window>
